package com.xfcy.blog.controller.system;



import cn.dev33.satoken.annotation.SaCheckLogin;
import com.xfcy.blog.common.R;
import com.xfcy.blog.service.JobLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 定时任务调度日志表(JobLog)表控制层
 *
 * @author 晓风残月Lx
 * @since 2023-04-09 11:03:05
 */
@RestController
@RequestMapping("system/jobLog")
@Api(tags = "定时任务日志管理")
public class JobLogController {

    @Resource
    private JobLogService jobLogService;


    @GetMapping("/list")
    @SaCheckLogin
    @ApiOperation(value = "定时任务日志列表", httpMethod = "GET", response = R.class, notes = "定时任务日志列表")
    public R list(Long pageNo, Long pageSize, String jobName, String jobGroup, String status, String startTime,
                  String endTime, Long jobId) {
        return jobLogService.listJobLog(pageNo, pageSize, jobName, jobGroup, status, startTime, endTime, jobId);
    }


}

